﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListNews.aspx.cs" Inherits="GD.ModelContest.Web.Admin.ListNews" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>新闻管理</title>
    <link rel="stylesheet" type="text/css" href="js/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="js/themes/icon.css" />

    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>

    <script type="text/javascript" src="js/jquery.easyui.min-1.1.2.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <table style="width: 800px; height: 30px; font-size: 12px; background-color: #D6E7F7;">
        <tr>
            <td>
                新闻类别：<asp:DropDownList ID="ddlNewsType" runat="server">
                    <asp:ListItem Text="赛事公告" Value="1"></asp:ListItem>
                    <asp:ListItem Text="新闻速递" Value="2"></asp:ListItem>
                </asp:DropDownList>
                &nbsp;&nbsp;<asp:LinkButton ID="lkbSearch" runat="server" CssClass="easyui-linkbutton"
                    icon="icon-search" OnClick="lkbSearch_Click">查询</asp:LinkButton>
            </td>
        </tr>
    </table>
    <table id="tt" class="easyui-datagrid" style="width: 800px; height: auto; font-size: 12px;
        line-height: 25px;">
        <thead>
            <tr>
                <th field="name1" width="30">
                    ID
                </th>
                <th field="name2" width="100">
                    新闻类别
                </th>
                <th field="name3" width="400">
                    新闻标题
                </th>
                <th field="name4" width="100">
                    发布时间
                </th>
                <th field="name5" width="60">
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
            <asp:Repeater ID="rpNewsCollection" runat="server" OnItemDataBound="rpNewsCollection_ItemDataBound"
                OnItemCommand="rpNewsCollection_ItemCommand">
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Label ID="lblId" runat="server"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblSort" runat="server"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblTitle" runat="server"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblCreateTime" runat="server"></asp:Label>
                        </td>
                        <td>
                            <asp:HyperLink ID="HyperLink_Edit" runat="server" NavigateUrl="EditNews.aspx?Id={0}"
                                Text="修改"></asp:HyperLink>&nbsp;&nbsp;<asp:LinkButton ID="lkb_Delete" runat="server"
                                    CausesValidation="False" CommandName="OperateDelete" Text="删除" OnClientClick="return confirm('您确认要进行删除操作吗?')"></asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </tbody>
    </table>
    <table style="width: 800px; height: 30px; font-size: 12px; background-color: #D6E7F7;">
        <tr>
            <td align="center">
                <webdiyer:AspNetPager ID="AspNetPager_FH" runat="server" FirstPageText="首页" LastPageText="末页"
                    NextPageText="下一页" PrevPageText="上一页" ShowInputBox="Never" OnPageChanged="AspNetPager_FH_PageChanged"
                    PageSize="13">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
